from common.libs.DataHelper import getCurrentTime, getCurrentDate
import datetime
from flask import jsonify, g, render_template, request
import math
from sqlalchemy.ext.declarative import DeclarativeMeta
import decimal, datetime
from config.dingtalk_setting import AppKey, AppSecret
import json, requests
from datetime import date, datetime, timedelta

# today = datetime.date.today()
# first = today.replace(day=1)
# last_month = first - datetime.timedelta(days=1)
# this_month = today - datetime.timedelta(days=1)
# # stime = this_month.strftime("%Y-%m") + "-25
# etime = last_month.strftime("%Y-%m") + "-26"
#
# a=["","",None,None,None,None,"aa"]
# print(a)


# def dingtalkpost(url, content):
#     token_params = {
#         'appkey': 'obk_DJZNKJ',
#         'appsecret': 'xR1^}nHJ4sqb)BlUE5*0YQP(',
#     }
#     dd_token = 'https://ct.ctrip.com/SwitchAPI/Order/Ticket'
#     token_response = requests.post(dd_token, params=token_params)  # 向API发起GET请求
#     tokenData = token_response.json()
#     # access_token = tokenData['access_token']
#     #
#     # url = url + '?access_token=' + access_token
#     # content1=json.dumps(content)
#     # userid_response = requests.post(url, data=content1)  # 向API发起GET请求
#     # resdata = userid_response.json()
#     return token_response

# token_params = {
#     'appKey': 'obk_DJZNKJ',
#     'appSecurity': 'xR1^}nHJ4sqb)BlUE5*0YQP(',
# }
# dd_token = 'https://ct.ctrip.com/SwitchAPI/Order/Ticket'
# token_response = requests.post(dd_token, params=token_params)  # 向API发起GET请求
# tokenData = token_response.json()
# print(tokenData)
#
# a = []
# userinfo = {
#     "Language": "null",
#     "Appkey": "obk_DJZNKJ",
#     "Ticket": tokenData['Ticket'],
#     "CorporationID": "DJZNKJ",
#     "AuthenticationInfoList": []
# }
#
# for i in user:
#     temp = {"Sequence": i.index, "Authentication": {"EmployeeID": '', "Uid": "_SL01230782", "Name": "111"}}
#     userinfo["AuthenticationInfoList"].append(temp)
# print(userinfo)

a = {'attached_process_instance_ids': {}, 'biz_action': 'NONE', 'business_id': '202302280844000273426',
     'create_time': '2023-02-28 08:44:28', 'finish_time': '2023-02-28 08:45:16', 'form_component_values': {
        'form_component_value_vo': [{'component_type': 'DDBizSuite', 'id': 'DDBizSuite_IXP6NNTHOAW0', 'name': '出差',
                                     'value': '[{"componentName":"DDSelectField","componentType":"DDSelectField","extValue":"{\\"memo\\":\\"\\",\\"id\\":0}","props":{"bizAlias":"travelCategory","holidayOptions":[],"id":"DDSelectField-KDCL0BQO","label":"费用类型","objOptions":[],"options":[],"required":true},"value":"项目费用"},{"componentName":"TextField","componentType":"TextField","extValue":"dingtalk","props":{"bizAlias":"reason","holidayOptions":[],"id":"TextField_XCQ3W8ZCT740","label":"出差事由","placeholder":"请输入出差事由","required":true},"value":"123"},{"children":[{"componentName":"DDSelectField","componentType":"DDSelectField","props":{"bizAlias":"vehicle","holidayOptions":[],"id":"DDSelectField_1BZPRB9GRTSW0","label":"交通工具","objOptions":[],"options":[],"required":true}},{"componentName":"DDSelectField","componentType":"DDSelectField","props":{"bizAlias":"singleOrReturn","holidayOptions":[],"id":"DDSelectField_1GHSCAVG60F40","label":"单程往返","objOptions":[],"options":[],"required":true}},{"componentName":"TextField","componentType":"TextField","props":{"bizAlias":"departure","holidayOptions":[],"id":"TextField_QAOO89HWCPS0","label":"出发城市","placeholder":"请选择城市","required":true}},{"componentName":"TextField","componentType":"TextField","props":{"bizAlias":"arrival","holidayOptions":[],"id":"TextField_2UCJF9G4ZDG0","label":"目的城市","placeholder":"请选择城市","required":true}},{"componentName":"DDDateField","componentType":"DDDateField","props":{"bizAlias":"startTime","format":"yyyy-MM-dd A","holidayOptions":[],"id":"DDDateField_1GLKBJDV6DMO0","label":"开始时间","placeholder":"请选择时间","required":true,"useCalendar":true}},{"componentName":"DDDateField","componentType":"DDDateField","props":{"bizAlias":"endTime","format":"yyyy-MM-dd A","holidayOptions":[],"id":"DDDateField_SX4XHXEVZ340","label":"结束时间","placeholder":"请选择时间","required":true,"useCalendar":true}},{"componentName":"NumberField","componentType":"NumberField","props":{"bizAlias":"duration","disable":true,"holidayOptions":[],"id":"NumberField_326XMVK5BR20","label":"时长","placeholder":"自动计算，无需填写","required":true,"unit":"天"}},{"componentName":"DDSelectField","componentType":"DDSelectField","props":{"bizAlias":"itineraryProject","hidden":false,"holidayOptions":[],"id":"DDSelectField-KDCL1UD0","label":"项目名称","objOptions":[],"options":[],"placeholder":"请输入项目名称","required":true}},{"componentName":"InnerContactField","componentType":"InnerContactField","props":{"bizAlias":"itineraryProjectOwner","choice":0,"disabled":true,"hidden":true,"holidayOptions":[],"id":"InnerContactField-KDCL1UD1","label":"项目负责人","placeholder":"请选择","required":false}},{"componentName":"DDSelectField","componentType":"DDSelectField","props":{"bizAlias":"itineraryCostCenter","hidden":false,"holidayOptions":[],"id":"DDSelectField-KDCL1UD2","label":"成本中心","objOptions":[],"options":[],"placeholder":"请选择","required":true}},{"componentName":"DDSelectField","componentType":"DDSelectField","props":{"bizAlias":"itineraryInvoiceTitle","hidden":false,"holidayOptions":[],"id":"DDSelectField-KDCL1UD3","label":"发票抬头","objOptions":[],"options":[],"placeholder":"请选择","required":true}},{"componentName":"DDSelectField","componentType":"DDSelectField","props":{"bizAlias":"hotelControl","disable":false,"holidayOptions":[],"id":"DDSelectField_1GA966Q3VS0W0","label":"预订酒店","options":["{\\"value\\":\\"需要\\",\\"key\\":\\"needHotel\\"}","{\\"value\\":\\"不需要\\",\\"key\\":\\"withoutHotel\\"}"],"placeholder":"预订酒店","required":true}}],"componentName":"TableField","componentType":"TableField","extValue":"{\\"statValue\\":[],\\"componentName\\":\\"TableField\\"}","props":{"actionName":"增加行程","bizAlias":"itinerary","holidayOptions":[],"id":"TableField_LOYU5E1WKJ40","label":"日程","statField":[]},"value":"[{\\"rowValue\\":[{\\"bizAlias\\":\\"vehicle\\",\\"label\\":\\"交通工具\\",\\"extendValue\\":{\\"memo\\":\\"\\",\\"id\\":\\"0\\"},\\"value\\":\\"飞机\\",\\"key\\":\\"DDSelectField_1BZPRB9GRTSW0\\"},{\\"bizAlias\\":\\"singleOrReturn\\",\\"label\\":\\"单程往返\\",\\"extendValue\\":{\\"memo\\":\\"\\",\\"id\\":\\"1\\"},\\"value\\":\\"往返\\",\\"key\\":\\"DDSelectField_1GHSCAVG60F40\\"},{\\"bizAlias\\":\\"departure\\",\\"label\\":\\"出发城市\\",\\"extendValue\\":{\\"c\\":\\"SZX\\",\\"y\\":\\"中国\\",\\"region\\":0,\\"n\\":\\"深圳\\",\\"vehicleType\\":2},\\"value\\":\\"深圳\\",\\"key\\":\\"TextField_QAOO89HWCPS0\\"},{\\"bizAlias\\":\\"arrival\\",\\"label\\":\\"目的城市\\",\\"extendValue\\":{\\"c\\":\\"CTU\\",\\"y\\":\\"中国\\",\\"region\\":0,\\"n\\":\\"成都\\",\\"vehicleType\\":2},\\"value\\":\\"成都\\",\\"key\\":\\"TextField_2UCJF9G4ZDG0\\"},{\\"bizAlias\\":\\"startTime\\",\\"label\\":\\"开始时间\\",\\"value\\":\\"2023-02-08 上午\\",\\"key\\":\\"DDDateField_1GLKBJDV6DMO0\\"},{\\"bizAlias\\":\\"endTime\\",\\"label\\":\\"结束时间\\",\\"value\\":\\"2023-02-24 下午\\",\\"key\\":\\"DDDateField_SX4XHXEVZ340\\"},{\\"bizAlias\\":\\"duration\\",\\"label\\":\\"时长\\",\\"extendValue\\":{\\"compressedValue\\":\\"1f8b0800000000000000bd99cd8ed3481485dfa5d606d5efbd55d9215a08246031f42c10626125868e0849cb7618a1562f58b06133e205909040b361c40bf03874f31a5cd38e53edc494dd6d2a3bffa8cebde773b94e39276c9a2ea6eb455a660f56b38c4d64c2665999ce17f7e745c9264f4ed86c9da7e57cb5bcb73c485fb389b8c979e29dbcbb5ae76c627f9d7d96a5e53acf0a363961e9f1f1e2f59d7cf5f270fe92c61580c60a90bcfa2517570f57de35c3757d6dba488be2615a5d6167ef3e9cbdfd72f6e9bff3cfdf7efcfbfff9978facbee15136ad0a282ed5f8605e9d908246c996b35bd37c55d0f1c591a725adadb58a32cd4befbe5fc77b2a3e4d76443020b26d2824a2742df23461f3e2afac32fe59ba28b284bdcaf28224c909f29d9d26ec282d6e57edb34999afe986e345babc3763136d5181331c34ba84fdb3ca5f1c10d30b01b406ea52aa0b9532f5b02e2b50da5eeaedfa901d97d005d929b0b1203b61643fff9b8a8743f61a0a89480ee34106546dc8162fda8d03d93ade0119b8543212647254404fff37150f86ec37f47b112a05f978902d98366467ac8e0519381add055970dc3793bf7f7b7ffee66b0fb034f26f3df7c60f79bea97298e7f51d1bd36f8896d5c0b5b6d1ac16206ca7d54eef9b4fe359bd1d3f607553e5c8560b256434aba5b65d2104a495b14208d09ad3f3096f2a1efeeaf21a0a89008c10421cd7d5da84cee9366429305a0801a5745708015ab2638510501a7bceada6e2e190bd864222468e1142acacfab2f4ccb421ab3af34681acc9fd2ec8da986821442bd52f846c2b1e0ed96b2824a23649e75a335928a3c0d04b0177203b1e2f84188e9d21c4e826fdfd71c8b5fb3dfc6f2a1e0ed96b282422af947a76203b89da5925781bb24688177f681fd5197f680de3b120036d9f7bfabfa9783864afa18008882be5ad3664a9691d52557a6b4336a0e2052f7a9e3a83170ab96f268f9671bdf1439e6faa1c39e38276f1e20fc975c61fca66fbe6d378566fc70f58dd5439b2d5582fc751acb6467586106b315a08b1607a3ee14dc5c35f5d5e432111dc249debbdbab831b43bb4b8b39db052c60b214eb9ce10e250450b21ce34dff802fe37150f87ec35141231384208b10e09a69444b90dd9711b2d842097a62b8460fded360664e4caf60b21db8a0743f61b0a8968354608116028db1a67ed0e6467a285101442768510141a627dfda13ca2fbedd9b7150f87ec35141251574a3d6dc84a22cd66455bc41664e456448b3f289ced8a3f28958cf5f507a510fd96cb6dc5c3217b0d0544a4b852deda814c6b6ff5eed9f9770205343b9bbd909f263b90712f65a1a075be19a77a8eb617fe5ecea9077670eb31e13a5e174787e9733a66a73f019f7554e7d81e0000\\",\\"unit\\":\\"DAY\\",\\"extension\\":\\"{\\\\\\"tag\\\\\\":\\\\\\"\\\\\\"}\\",\\"_from\\":\\"2023-02-08 上午\\",\\"pushTag\\":\\"\\",\\"detailList\\":[{\\"classInfo\\":{\\"name\\":\\"办公大楼班次\\",\\"hasClass\\":true,\\"sections\\":[{\\"endAcross\\":0,\\"startTime\\":1675816200000,\\"endTime\\":1675828800000,\\"startAcross\\":0},{\\"endAcross\\":0,\\"startTime\\":1675834200000,\\"endTime\\":1675850400000,\\"startAcross\\":0}]},\\"workDate\\":1675785600000,\\"isRest\\":false,\\"workTimeMinutes\\":480,\\"approveInfo\\":{\\"fromAcross\\":0,\\"toAcross\\":0,\\"fromTime\\":1675816200000,\\"durationInDay\\":1,\\"toTime\\":1675850400000,\\"durationInHour\\":8}},{\\"classInfo\\":{\\"name\\":\\"办公大楼班次\\",\\"hasClass\\":true,\\"sections\\":[{\\"endAcross\\":0,\\"startTime\\":1675902600000,\\"endTime\\":1675915200000,\\"startAcross\\":0},{\\"endAcross\\":0,\\"startTime\\":1675920600000,\\"endTime\\":1675936800000,\\"startAcross\\":0}]},\\"workDate\\":1675872000000,\\"isRest\\":false,\\"workTimeMinutes\\":480,\\"approveInfo\\":{\\"fromAcross\\":0,\\"toAcross\\":0,\\"fromTime\\":1675902600000,\\"durationInDay\\":1,\\"toTime\\":1675936800000,\\"durationInHour\\":8}},{\\"classInfo\\":{\\"name\\":\\"办公大楼班次\\",\\"hasClass\\":true,\\"sections\\":[{\\"endAcross\\":0,\\"startTime\\":1675989000000,\\"endTime\\":1676001600000,\\"startAcross\\":0},{\\"endAcross\\":0,\\"startTime\\":1676007000000,\\"endTime\\":1676023200000,\\"startAcross\\":0}]},\\"workDate\\":1675958400000,\\"isRest\\":false,\\"workTimeMinutes\\":480,\\"approveInfo\\":{\\"fromAcross\\":0,\\"toAcross\\":0,\\"fromTime\\":1675989000000,\\"durationInDay\\":1,\\"toTime\\":1676023200000,\\"durationInHour\\":8}},{\\"classInfo\\":{\\"name\\":\\"休息\\",\\"hasClass\\":false,\\"sections\\":[{\\"endAcross\\":0,\\"startTime\\":1676075400000,\\"endTime\\":1676107800000,\\"startAcross\\":0}]},\\"workDate\\":1676044800000,\\"isRest\\":false,\\"workTimeMinutes\\":480,\\"approveInfo\\":{\\"fromAcross\\":0,\\"toAcross\\":0,\\"fromTime\\":1676075400000,\\"durationInDay\\":1,\\"toTime\\":1676107800000,\\"durationInHour\\":8}},{\\"classInfo\\":{\\"name\\":\\"休息\\",\\"hasClass\\":false,\\"sections\\":[{\\"endAcross\\":0,\\"startTime\\":1676161800000,\\"endTime\\":1676194200000,\\"startAcross\\":0}]},\\"workDate\\":1676131200000,\\"isRest\\":false,\\"workTimeMinutes\\":480,\\"approveInfo\\":{\\"fromAcross\\":0,\\"toAcross\\":0,\\"fromTime\\":1676161800000,\\"durationInDay\\":1,\\"toTime\\":1676194200000,\\"durationInHour\\":8}},{\\"classInfo\\":{\\"name\\":\\"办公大楼班次\\",\\"hasClass\\":true,\\"sections\\":[{\\"endAcross\\":0,\\"startTime\\":1676248200000,\\"endTime\\":1676260800000,\\"startAcross\\":0},{\\"endAcross\\":0,\\"startTime\\":1676266200000,\\"endTime\\":1676282400000,\\"startAcross\\":0}]},\\"workDate\\":1676217600000,\\"isRest\\":false,\\"workTimeMinutes\\":480,\\"approveInfo\\":{\\"fromAcross\\":0,\\"toAcross\\":0,\\"fromTime\\":1676248200000,\\"durationInDay\\":1,\\"toTime\\":1676282400000,\\"durationInHour\\":8}},{\\"classInfo\\":{\\"name\\":\\"办公大楼班次\\",\\"hasClass\\":true,\\"sections\\":[{\\"endAcross\\":0,\\"startTime\\":1676334600000,\\"endTime\\":1676347200000,\\"startAcross\\":0},{\\"endAcross\\":0,\\"startTime\\":1676352600000,\\"endTime\\":1676368800000,\\"startAcross\\":0}]},\\"workDate\\":1676304000000,\\"isRest\\":false,\\"workTimeMinutes\\":480,\\"approveInfo\\":{\\"fromAcross\\":0,\\"toAcross\\":0,\\"fromTime\\":1676334600000,\\"durationInDay\\":1,\\"toTime\\":1676368800000,\\"durationInHour\\":8}},{\\"classInfo\\":{\\"name\\":\\"办公大楼班次\\",\\"hasClass\\":true,\\"sections\\":[{\\"endAcross\\":0,\\"startTime\\":1676421000000,\\"endTime\\":1676433600000,\\"startAcross\\":0},{\\"endAcross\\":0,\\"startTime\\":1676439000000,\\"endTime\\":1676455200000,\\"startAcross\\":0}]},\\"workDate\\":1676390400000,\\"isRest\\":false,\\"workTimeMinutes\\":480,\\"approveInfo\\":{\\"fromAcross\\":0,\\"toAcross\\":0,\\"fromTime\\":1676421000000,\\"durationInDay\\":1,\\"toTime\\":1676455200000,\\"durationInHour\\":8}},{\\"classInfo\\":{\\"name\\":\\"办公大楼班次\\",\\"hasClass\\":true,\\"sections\\":[{\\"endAcross\\":0,\\"startTime\\":1676507400000,\\"endTime\\":1676520000000,\\"startAcross\\":0},{\\"endAcross\\":0,\\"startTime\\":1676525400000,\\"endTime\\":1676541600000,\\"startAcross\\":0}]},\\"workDate\\":1676476800000,\\"isRest\\":false,\\"workTimeMinutes\\":480,\\"approveInfo\\":{\\"fromAcross\\":0,\\"toAcross\\":0,\\"fromTime\\":1676507400000,\\"durationInDay\\":1,\\"toTime\\":1676541600000,\\"durationInHour\\":8}},{\\"classInfo\\":{\\"name\\":\\"办公大楼班次\\",\\"hasClass\\":true,\\"sections\\":[{\\"endAcross\\":0,\\"startTime\\":1676593800000,\\"endTime\\":1676606400000,\\"startAcross\\":0},{\\"endAcross\\":0,\\"startTime\\":1676611800000,\\"endTime\\":1676628000000,\\"startAcross\\":0}]},\\"workDate\\":1676563200000,\\"isRest\\":false,\\"workTimeMinutes\\":480,\\"approveInfo\\":{\\"fromAcross\\":0,\\"toAcross\\":0,\\"fromTime\\":1676593800000,\\"durationInDay\\":1,\\"toTime\\":1676628000000,\\"durationInHour\\":8}},{\\"classInfo\\":{\\"name\\":\\"休息\\",\\"hasClass\\":false,\\"sections\\":[{\\"endAcross\\":0,\\"startTime\\":1676680200000,\\"endTime\\":1676712600000,\\"startAcross\\":0}]},\\"workDate\\":1676649600000,\\"isRest\\":false,\\"workTimeMinutes\\":480,\\"approveInfo\\":{\\"fromAcross\\":0,\\"toAcross\\":0,\\"fromTime\\":1676680200000,\\"durationInDay\\":1,\\"toTime\\":1676712600000,\\"durationInHour\\":8}},{\\"classInfo\\":{\\"name\\":\\"休息\\",\\"hasClass\\":false,\\"sections\\":[{\\"endAcross\\":0,\\"startTime\\":1676766600000,\\"endTime\\":1676799000000,\\"startAcross\\":0}]},\\"workDate\\":1676736000000,\\"isRest\\":false,\\"workTimeMinutes\\":480,\\"approveInfo\\":{\\"fromAcross\\":0,\\"toAcross\\":0,\\"fromTime\\":1676766600000,\\"durationInDay\\":1,\\"toTime\\":1676799000000,\\"durationInHour\\":8}},{\\"classInfo\\":{\\"name\\":\\"办公大楼班次\\",\\"hasClass\\":true,\\"sections\\":[{\\"endAcross\\":0,\\"startTime\\":1676853000000,\\"endTime\\":1676865600000,\\"startAcross\\":0},{\\"endAcross\\":0,\\"startTime\\":1676871000000,\\"endTime\\":1676887200000,\\"startAcross\\":0}]},\\"workDate\\":1676822400000,\\"isRest\\":false,\\"workTimeMinutes\\":480,\\"approveInfo\\":{\\"fromAcross\\":0,\\"toAcross\\":0,\\"fromTime\\":1676853000000,\\"durationInDay\\":1,\\"toTime\\":1676887200000,\\"durationInHour\\":8}},{\\"classInfo\\":{\\"name\\":\\"办公大楼班次\\",\\"hasClass\\":true,\\"sections\\":[{\\"endAcross\\":0,\\"startTime\\":1676939400000,\\"endTime\\":1676952000000,\\"startAcross\\":0},{\\"endAcross\\":0,\\"startTime\\":1676957400000,\\"endTime\\":1676973600000,\\"startAcross\\":0}]},\\"workDate\\":1676908800000,\\"isRest\\":false,\\"workTimeMinutes\\":480,\\"approveInfo\\":{\\"fromAcross\\":0,\\"toAcross\\":0,\\"fromTime\\":1676939400000,\\"durationInDay\\":1,\\"toTime\\":1676973600000,\\"durationInHour\\":8}},{\\"classInfo\\":{\\"name\\":\\"办公大楼班次\\",\\"hasClass\\":true,\\"sections\\":[{\\"endAcross\\":0,\\"startTime\\":1677025800000,\\"endTime\\":1677038400000,\\"startAcross\\":0},{\\"endAcross\\":0,\\"startTime\\":1677043800000,\\"endTime\\":1677060000000,\\"startAcross\\":0}]},\\"workDate\\":1676995200000,\\"isRest\\":false,\\"workTimeMinutes\\":480,\\"approveInfo\\":{\\"fromAcross\\":0,\\"toAcross\\":0,\\"fromTime\\":1677025800000,\\"durationInDay\\":1,\\"toTime\\":1677060000000,\\"durationInHour\\":8}},{\\"classInfo\\":{\\"name\\":\\"办公大楼班次\\",\\"hasClass\\":true,\\"sections\\":[{\\"endAcross\\":0,\\"startTime\\":1677112200000,\\"endTime\\":1677124800000,\\"startAcross\\":0},{\\"endAcross\\":0,\\"startTime\\":1677130200000,\\"endTime\\":1677146400000,\\"startAcross\\":0}]},\\"workDate\\":1677081600000,\\"isRest\\":false,\\"workTimeMinutes\\":480,\\"approveInfo\\":{\\"fromAcross\\":0,\\"toAcross\\":0,\\"fromTime\\":1677112200000,\\"durationInDay\\":1,\\"toTime\\":1677146400000,\\"durationInHour\\":8}},{\\"classInfo\\":{\\"name\\":\\"办公大楼班次\\",\\"hasClass\\":true,\\"sections\\":[{\\"endAcross\\":0,\\"startTime\\":1677198600000,\\"endTime\\":1677211200000,\\"startAcross\\":0},{\\"endAcross\\":0,\\"startTime\\":1677216600000,\\"endTime\\":1677232800000,\\"startAcross\\":0}]},\\"workDate\\":1677168000000,\\"isRest\\":false,\\"workTimeMinutes\\":480,\\"approveInfo\\":{\\"fromAcross\\":0,\\"toAcross\\":0,\\"fromTime\\":1677198600000,\\"durationInDay\\":1,\\"toTime\\":1677232800000,\\"durationInHour\\":8}}],\\"durationInDay\\":17,\\"_to\\":\\"2023-02-24 下午\\",\\"isModifiable\\":true,\\"durationInHour\\":136},\\"value\\":17,\\"key\\":\\"NumberField_326XMVK5BR20\\"},{\\"bizAlias\\":\\"itineraryProject\\",\\"label\\":\\"项目名称\\",\\"extendValue\\":{\\"codeName\\":\\"22-01\\",\\"id\\":747227},\\"value\\":\\"测试项目\\",\\"key\\":\\"DDSelectField-KDCL1UD0\\"},{\\"bizAlias\\":\\"itineraryCostCenter\\",\\"label\\":\\"成本中心\\",\\"extendValue\\":{\\"id\\":\\"1694593\\"},\\"value\\":\\"东杰智能科技集团股份有限公司\\",\\"key\\":\\"DDSelectField-KDCL1UD2\\"},{\\"bizAlias\\":\\"itineraryInvoiceTitle\\",\\"label\\":\\"发票抬头\\",\\"extendValue\\":{\\"memo\\":\\"\\",\\"id\\":\\"202994\\"},\\"value\\":\\"暂无\\",\\"key\\":\\"DDSelectField-KDCL1UD3\\"},{\\"bizAlias\\":\\"hotelControl\\",\\"label\\":\\"预订酒店\\",\\"extendValue\\":{\\"label\\":\\"需要\\",\\"key\\":\\"needHotel\\"},\\"value\\":\\"需要\\",\\"key\\":\\"DDSelectField_1GA966Q3VS0W0\\"},{\\"label\\":\\"隐藏字段\\",\\"value\\":\\"99357185\\",\\"key\\":\\"snapshotId\\"}],\\"rowNumber\\":\\"TableField_LOYU5E1WKJ40_QLDGXLOGZ400\\"}]"},{"componentName":"NumberField","componentType":"NumberField","props":{"bizAlias":"days","disable":true,"holidayOptions":[],"id":"NumberField_9D24NZ4EROK0","label":"出差天数","placeholder":"自动计算，无需填写","required":true},"value":"17"},{"componentName":"TextareaField","componentType":"TextareaField","props":{"bizAlias":"memo","holidayOptions":[],"id":"TextareaField_L66ZATD8UO00","label":"出差备注","placeholder":"请输入具体的出差备注（选填，少于500字）"},"value":"123"},{"componentName":"DDSelectField","componentType":"DDSelectField","props":{"bizAlias":"costCenter","holidayOptions":[],"id":"DDSelectField_1Y6941PHE2SG0","label":"成本中心","objOptions":[],"options":[],"placeholder":"请选择","required":true}},{"componentName":"DDSelectField","componentType":"DDSelectField","props":{"bizAlias":"invoiceTitle","holidayOptions":[],"id":"DDSelectField_1MMPKOUTNFEO0","label":"发票抬头","objOptions":[],"options":[],"placeholder":"请选择","required":true}},{"componentName":"InnerContactField","componentType":"InnerContactField","extValue":"[{\\"emplId\\":\\"056411420820728054\\",\\"itemId\\":\\"056411420820728054\\",\\"name\\":\\"关卓然\\",\\"avatar\\":\\"https://static-legacy.dingtalk.com/media/lQDPDhs_pA2_ONnNAwzNAwywYKeWgcO_-coCOPE9oUBhAA_780_780.jpg\\"}]","props":{"bizAlias":"traveler","choice":1,"disabled":false,"holidayOptions":[],"id":"InnerContactField_1AEQ2B8Y5SQO0","label":"出行人（同行人）","placeholder":"请选择","required":true},"value":"关卓然"},{"componentName":"TextField","componentType":"TextField","props":{"bizAlias":"outTraveler","holidayOptions":[],"id":"TextField_1VOQ6SHCI1C00","label":"外部人员","placeholder":"请输入(多人用 , 隔开)"}}]'}]},
     'operation_records': {'operation_records_vo': [
         {'date': '2023-02-28 08:44:27', 'operation_result': 'NONE', 'operation_type': 'START_PROCESS_INSTANCE',
          'userid': '056411420820728054'},
         {'date': '2023-02-28 08:45:16', 'operation_result': 'AGREE', 'operation_type': 'EXECUTE_TASK_NORMAL',
          'remark': '', 'userid': '056411420820728054'}]}, 'originator_dept_id': '678126725',
     'originator_dept_name': '集团职能部门-信息技术板块-信息技术部', 'originator_userid': '056411420820728054', 'result': 'agree',
     'status': 'COMPLETED', 'tasks': {'task_top_vo': [
        {'create_time': '2023-02-28 08:44:28', 'finish_time': '2023-02-28 08:45:16', 'task_result': 'AGREE',
         'task_status': 'COMPLETED', 'taskid': '78650187401', 'userid': '056411420820728054'}]},
     'title': '关卓然提交的出差连接测试'}
